from django.db import models
from op_drf.base import BaseModel

# Create your models here.
class DispenProduct(BaseModel):
    '''
    摆药方案展示
    '''

    title = models.CharField(max_length=100, verbose_name="方案名称", help_text="方案名称")
    detail = models.CharField(max_length=500, verbose_name="详情", help_text="详情")
    detail_address = models.CharField(max_length=500, default="", verbose_name="详情地址", help_text="详情地址")
    img = models.CharField(max_length=200, default="", verbose_name="图片地址", help_text="图片地址")

    class Meta:
        db_table = "yc_dispenproduct"
        verbose_name = "摆药产品"
        verbose_name_plural = verbose_name